import { request } from '@/utilis/request'

export function upUserId(data) {
  return request({
    url: '/register',
    method: 'post',
    data
  })
}

export function getUserId() {
  return request({
    url: '/register',
    method: 'get'
  })
}

export function updateUserInfo(id, data) {
  return request({
    url: `/login/${id}`,
    method: 'put',
    data
  })
}
